package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.SecdriverProductTypeMapper;
import com.ruoyi.product.domain.SecdriverProductType;
import com.ruoyi.product.service.ISecdriverProductTypeService;

/**
 * 产品分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-04
 */
@Service
public class SecdriverProductTypeServiceImpl implements ISecdriverProductTypeService 
{
    @Autowired
    private SecdriverProductTypeMapper secdriverProductTypeMapper;

    /**
     * 查询产品分类
     * 
     * @param productTypeId 产品分类ID
     * @return 产品分类
     */
    @Override
    public SecdriverProductType selectSecdriverProductTypeById(Long productTypeId)
    {
        return secdriverProductTypeMapper.selectSecdriverProductTypeById(productTypeId);
    }

    /**
     * 查询产品分类列表
     * 
     * @param secdriverProductType 产品分类
     * @return 产品分类
     */
    @Override
    public List<SecdriverProductType> selectSecdriverProductTypeList(SecdriverProductType secdriverProductType)
    {
        return secdriverProductTypeMapper.selectSecdriverProductTypeList(secdriverProductType);
    }

    /**
     * 新增产品分类
     * 
     * @param secdriverProductType 产品分类
     * @return 结果
     */
    @Override
    public int insertSecdriverProductType(SecdriverProductType secdriverProductType)
    {
        return secdriverProductTypeMapper.insertSecdriverProductType(secdriverProductType);
    }

    /**
     * 修改产品分类
     * 
     * @param secdriverProductType 产品分类
     * @return 结果
     */
    @Override
    public int updateSecdriverProductType(SecdriverProductType secdriverProductType)
    {
        return secdriverProductTypeMapper.updateSecdriverProductType(secdriverProductType);
    }

    /**
     * 批量删除产品分类
     * 
     * @param productTypeIds 需要删除的产品分类ID
     * @return 结果
     */
    @Override
    public int deleteSecdriverProductTypeByIds(Long[] productTypeIds)
    {
        return secdriverProductTypeMapper.deleteSecdriverProductTypeByIds(productTypeIds);
    }

    /**
     * 删除产品分类信息
     * 
     * @param productTypeId 产品分类ID
     * @return 结果
     */
    @Override
    public int deleteSecdriverProductTypeById(Long productTypeId)
    {
        return secdriverProductTypeMapper.deleteSecdriverProductTypeById(productTypeId);
    }
}
